package com.base.power.demo.sys.service;

import com.base.power.demo.common.base.dao.GenericDao;
import com.base.power.demo.common.base.service.GenericService;
import com.base.power.demo.sys.dao.TreeDao;
import com.base.power.demo.sys.entity.QueryTree;
import com.base.power.demo.sys.entity.Tree;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

/**
 * 类描述：菜单service的逻辑处理类
 */
@Service
@Transactional(rollbackFor={IllegalArgumentException.class})
public class TreeService extends GenericService<Tree,QueryTree> {

    @Autowired
    private TreeDao treeDao;

    @Override
    protected GenericDao<Tree, QueryTree> getDao() {
        return treeDao;
    }
}
